<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<!DOCTYPE html>
<html>
<head>
<title></title>
<t:base type="jquery,easyui,tools,DatePicker,ckeditor"></t:base>
</head>
<body style="overflow-y: auto" scroll="no">
<t:formvalid formid="formobj" dialog="true" usePlugin="password" layout="div" action="adController.do?saveAdPosition">
	<input id="id" name="id" type="hidden" value="${map.id }">
	<fieldset class="step" id="step_fieldset">
        <div class="form">
            <label class="Validform_label">名称:</label>
            <input class="inputxt" id="name" name="name" value="${map.name}" datatype="*" maxlength="20" style="width: 200px;">
            <span class="Validform_checktip"></span>
        </div>
        <div class="form">
            <label class="Validform_label">代码:</label>
            <input class="inputxt" id="code" name="code" value="${map.code}" datatype="*" maxlength="10" style="width: 200px;">
            <span class="Validform_checktip"></span>
        </div>
        <div class="form">
            <label class="Validform_label">页面:</label>
            <input class="inputxt" id="page" name="page" value="${map.page}"  maxlength="100" style="width: 200px;">
        </div>
        <div class="form">
            <label class="Validform_label">广告类型:</label>
            <t:dictSelect field="type" typeGroupCode="adType" defaultVal="${map.type}"
                          hasLabel="false"  >
            </t:dictSelect>
        </div>
        <div class="form">
            <c:set var="defTemplet" value="${map.templet}"></c:set>
            <c:if test="${defTemplet == null || defTemplet == ''}">
                <c:set var="defTemplet" value="10000"></c:set>
            </c:if>
            <label class="Validform_label">广告模板:</label>
            <t:dictSelect field="templet" typeGroupCode="dyAdTem" defaultVal="${defTemplet}"
                          hasLabel="false"  extendJson="{datatype='*'}"  >
            </t:dictSelect>
        </div>
        <div class="form">
            <label class="Validform_label">排序:</label>
            <input class="inputxt" id="sort" name="sort" value="${map.sort}"  datatype="n"  style="width: 200px;">
            <span class="Validform_checktip"></span>
        </div>
	</fieldset>
</t:formvalid>
<script>
    $(function(){
        $("#step_fieldset").css("padding-bottom", "0");
        $("#step_fieldset").css("width", "450");
//        $("#step_fieldset").css("height", "600");
        $("#wrapper").css("width", "450");
    })
</script>
</body>